package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ScnTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("input:");
       String str=in.next();
        // String str=in.nextLine();
        System.out.println(str.length());
        System.out.println(str);
        System.out.println("1:login 2:regs,3:4:quit");
        while (true){
            try {
                int ch=in.nextInt();
                System.out.println("choose :"+ch);
                if(ch>=1 && ch<=4)
                    break;
                System.out.println("re choose");
            } catch (Exception e) {
                e.printStackTrace();
                in.nextLine();//!!!!!!!!!!!
            }
        }
    }
}
